<?php

namespace BaseBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * ArticleClass
 *
 * @ORM\Table(name="article_class")
 * @ORM\Entity(repositoryClass="BaseBundle\Repository\ArticleClassRepository")
 */
class ArticleClass
{
    /**
     * @var int
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var string
     * @ORM\Column(name="article_class_name", type="string", length=255, nullable=true, options={"comment":"分类名称"})
     */
    private $articleClassName;

    /**
     * @var boolean
     * @ORM\Column(name="is_del", nullable=true, type="smallint", options={"comment":"是否删除","default":"0"})
     */
    private $isDel = 0;

    /**
     * @var boolean
     * @ORM\Column(name="is_recommend", nullable=true, type="smallint", options={"comment":"是否首页推荐","default":"0"})
     */
    private $isRecommend = 0;

    /**
     * @var integer
     *
     * @ORM\Column(name="view_times", type="integer", nullable=true, options={"comment":"查看次数", "default":"0"})
     */
    private $viewTimes = 0;

    /**
     * @var boolean
     *
     * @ORM\Column(name="is_built", type="boolean", options={"comment":"是否内置", "default":"0"})
     */
    private $isBuilt = 0;

    /**
     * @var string
     * @ORM\Column(name="show_image", nullable=true, type="text", options={"comment":"展示图"})
     */
    private $showImage;

    /**
     * Get id
     *
     * @return integer
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set articleClassName
     *
     * @param string $articleClassName
     *
     * @return ArticleClass
     */
    public function setArticleClassName($articleClassName)
    {
        $this->articleClassName = $articleClassName;

        return $this;
    }

    /**
     * Get articleClassName
     *
     * @return string
     */
    public function getArticleClassName()
    {
        return $this->articleClassName;
    }

    /**
     * Set isDel
     *
     * @param integer $isDel
     *
     * @return ArticleClass
     */
    public function setIsDel($isDel)
    {
        $this->isDel = $isDel;

        return $this;
    }

    /**
     * Get isDel
     *
     * @return integer
     */
    public function getIsDel()
    {
        return $this->isDel;
    }

    /**
     * Set isRecommend
     *
     * @param integer $isRecommend
     *
     * @return ArticleClass
     */
    public function setIsRecommend($isRecommend)
    {
        $this->isRecommend = $isRecommend;

        return $this;
    }

    /**
     * Get isRecommend
     *
     * @return integer
     */
    public function getIsRecommend()
    {
        return $this->isRecommend;
    }

    /**
     * Set showImage
     *
     * @param string $showImage
     *
     * @return ArticleClass
     */
    public function setShowImage($showImage)
    {
        $this->showImage = $showImage;

        return $this;
    }

    /**
     * Get showImage
     *
     * @return string
     */
    public function getShowImage()
    {
        return $this->showImage;
    }

    /**
     * Set isBuilt
     *
     * @param boolean $isBuilt
     *
     * @return ArticleClass
     */
    public function setIsBuilt($isBuilt)
    {
        $this->isBuilt = $isBuilt;

        return $this;
    }

    /**
     * Get isBuilt
     *
     * @return boolean
     */
    public function getIsBuilt()
    {
        return $this->isBuilt;
    }

    /**
     * Set viewTimes
     *
     * @param integer $viewTimes
     *
     * @return ArticleClass
     */
    public function setViewTimes($viewTimes)
    {
        $this->viewTimes = $viewTimes;

        return $this;
    }

    /**
     * Get viewTimes
     *
     * @return integer
     */
    public function getViewTimes()
    {
        return $this->viewTimes;
    }
}
